<?php

namespace App\Models;

/**
 * Drawlot Model.
 */
class Drawlot extends Model
{
    protected $table = 'drawlots';
    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $fillable = [
        'apply_id',
        'user_id',
        'user_level',
        'round',
        'group'
    ];

    /**
     * user
     */
    public function user()
    {
        return $this->belongsTo('App\Models\User');
    }
}
